package com.enterprise.projectManager.rope;

import com.enterprise.projectManager.model.Problem;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;
import java.util.Optional;

public interface ProblemRope extends JpaRepository<Problem,String> {
    List<Problem> findByProjectProjectName (String projectName) ;
    List<Problem> findByProblemState (String problemState) ;
    Optional<Problem> findByProblemSendcompany (String problemSendcompany) ;
    List<Problem> findByProblemSenddateBetween(Date date1,Date date2);
}
